@echo on
@echo *****************************************************
@echo *****************************************************
@echo Building binaries 

@call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"

@REM Set this to the source code location
@set BuildRoot=C:\code\camm 12.0\Orchestria

@attrib -r "%BuildRoot%\GetMessage\Bin\MessageManagerAssembly.dll"
@msbuild /nologo /p:Configuration=Release "%BuildRoot%\GetMessage\GetMessage.sln"
@if %errorlevel% NEQ 0 goto error

@msbuild /nologo /t:Rebuild /p:Configuration=Release "%BuildRoot%\CA MM Orchestria\CA MM Orchestria.sln"
@if %errorlevel% NEQ 0 goto error

@echo Build completed sucessfully
@echo Check 
@echo   %BuildRoot%\CA MM Orchestria\CA MM Orchestria\bin\Release 
@echo and
@echo   %BuildRoot%\GetMessageWebsite
@echo for output
@echo *****************************************************
@echo *****************************************************
@rem @exit 0			if this is called from something that checks the rc then put this back in
:error
@echo Error building: %errorlevel%
@echo *****************************************************
@echo *****************************************************
@rem @exit %errorlevel%		if this is called from something that checks the rc then put this back in